package router

import (
	"auth-manager/handler"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("login", handler.Login)
	r.POST("userRoleAdd", handler.UserRoleAdd)
	r.POST("RoleNodeAdd", handler.RoleNodeAdd)
	return r
}
